// miniprogram/pages/patient/caseList.js
const pageNumer=1
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: []
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    app.globalData.cases.where({
      state:'未接诊'
    })
    .get()
    .then(res => {
      this.setData({
      list:res.data
      })
      app.globalData.cases = res.data
    })
  },

  showCase:function(e){
    console.log(e)
  }
})